package com.knight.wiremock;


import com.github.tomakehurst.wiremock.client.WireMock;

/**
 * 通过WireMock使用
 *
 * @author knight
 */
public class WireMockTest {

    public static void main(String[] args) {
        WireMock.configureFor(8076);
        WireMock.removeAllMappings();
        WireMock.stubFor(WireMock.get(WireMock.urlEqualTo("/order/1"))
                .willReturn(WireMock.aResponse().
                        withBody("{\"id:\":1}").withStatus(200)));
    }


}
